package com.esrichina.list;

import lombok.Data;

/**
 * @author :   luojie
 * date:     2019/8/11 19:32
 * description:
 */
@Data
public class Stat implements Comparable<Stat>{

    private String name;

    private Integer count;

    public Stat(String name, Integer count) {
        this.name = name;
        this.count = count;
    }

    @Override
    public int compareTo(Stat o) {
        return this.getCount().compareTo(o.getCount());
    }
}
